-- GENERATED SPELL FOR [Thaurissan Spy] --


function spell0_7036(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7036', 582, 1)
end

function spell1_7036(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7036', 30000, 1)
end

function Sorts_7036(pUnit, Event)
local choix_sorts_7036 = math.random(0, 1)
if choix_sorts_7036 == 0 then
pUnit:RegisterEvent('spell0_7036', 1, 1)
end
if choix_sorts_7036 == 1 then
pUnit:RegisterEvent('spell1_7036', 1, 1)
end
end

function mob7036_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7036', math.random(1500, 3000), 1)
end

function mob7036_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7036_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7036_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7036, 1, 'mob7036_Action')
RegisterUnitEvent(7036, 2, 'mob7036_Leave')
RegisterUnitEvent(7036, 3, 'mob7036_Kill')
RegisterUnitEvent(7036, 4, 'mob7036_Die')
